package day08;

public class Cat extends Ainimal {
	protected String color;
	
	protected String shengyin;

	
	public Cat() {
	}


	public Cat(String color, String shengyin) {
		super();
		this.color = color;
		this.shengyin = shengyin;
	}


	public String getColor() {
		return color;
	}


	public void setColor(String color) {
		this.color = color;
	}


	public String getShengyin() {
		return shengyin;
	}


	public void setShengyin(String shengyin) {
		this.shengyin = shengyin;
	}
	
	/**
	 * 前方有个小三角，说明这是重写方法
	 */
	public void eat() {
		System.out.println("小猫"+this.name+"吃的是猫粮");
	}
	
	public void sleep() {
		System.out.println("小猫"+this.name+"晚上不睡觉，要去抓耗子,等白天再睡觉");
	}
	

	public void jump() {
		System.out.println("小猫"+this.name+"可是能跳很高！");
	}
	
	
	
}
